from application import app
# 导入蓝图

from web.views.index import route_index
from web.views.member.Member import route_member
from web.views.static import route_static
from web.views.user.User import route_user
from web.views.account.Account import route_account
from web.views.food.Food import route_food
# 加载拦截器
from web.interceptors import Authinterceptor
from web.interceptors import ErrorInterceptor
# 加载小程序
from web.views.api import route_api

'''注册蓝图'''
app.register_blueprint(route_index, url_prefix="/")
# 添加static静态资源路由
app.register_blueprint(route_static, url_prefix='/static')
app.register_blueprint(route_user, url_prefix='/user')
app.register_blueprint(route_account, url_prefix='/account')
# 注册小程序测试用蓝图
app.register_blueprint(route_api, url_prefix='/api')
# 注册会员管理蓝图
app.register_blueprint(route_member, url_prefix='/member')
# 注册美食管理蓝图
app.register_blueprint(route_food, url_prefix='/food')